const BASE_URL ='http://127.0.0.1:9900'
export const myRequest =(options)=>{
	return new Promise((r)=>{
		uni.request({
			url:BASE_URL+options.url,
			method:options.method || 'GET',
			data: options.data || {},
			header:options.header||{
				Token:uni.getStorageSync("token")
			},
			success: (res) => {
				r(res)
			},
			fail: (res) => {
				r(res)
			}
		})
	})
}
